/* 数据管理页面 - 简洁版本 */

/* 页面整体布局 */
.data-management-page {
  min-height: 100vh;
}

.page-bg {
  min-height: 100vh;
  padding: 20px 0;
}

/* 页面标题 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-subtitle {
  color: #6b7280;
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
}

/* 统计概览 */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 12px;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.stat-label {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  font-size: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
}

.card-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* AI开关 */
.ai-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.ai-toggle:has(input:checked) {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
}

.toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 56px;
  height: 28px;
  background: #cbd5e1;
  border-radius: 28px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(28px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.toggle-label {
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* AI功能标签 */
.ai-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #e5e7eb;
}

.feature-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #93c5fd;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1e40af;
  transition: all 0.3s ease;
  cursor: default;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  min-height: 100px;
  position: relative;
  overflow: hidden;
}

.feature-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-tag:hover::before {
  opacity: 1;
}

.feature-tag:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
  border-color: #60a5fa;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.feature-tag.disabled {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-color: #d1d5db;
  color: #9ca3af;
}

.feature-tag.info {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #fcd34d;
  color: #92400e;
}

.feature-icon {
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
  position: relative;
  z-index: 1;
}

.feature-tag > span {
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.feature-tag > span:last-child {
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* 搜索模式切换 */
.search-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: #f9fafb;
  border-radius: 8px;
  width: fit-content;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn:hover {
  color: #374151;
  background: rgba(255,255,255,0.5);
}

.mode-btn.active {
  background: white;
  color: #3b82f6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mode-icon {
  font-size: 16px;
}

/* 搜索框 */
.search-box-container {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input-large {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: border-color 0.2s;
}

.search-input-large:focus {
  outline: none;
  border-color: #3b82f6;
}

.search-btn {
  padding: 12px 24px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-btn:hover {
  background: #2563eb;
}

/* 相似性搜索 */
.similarity-search-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.similarity-upload-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border: 2px dashed #3b82f6;
  border-radius: 8px;
  background: #f0f9ff;
  color: #3b82f6;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.similarity-upload-btn:hover {
  background: #dbeafe;
  border-color: #2563eb;
}

.similarity-preview {
  position: relative;
  margin-top: 16px;
  width: 160px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #3b82f6;
}

.similarity-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clear-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-btn:hover {
  background: #dc2626;
}

.similarity-hint {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  padding: 12px;
  background: #f9fafb;
  border-radius: 6px;
  margin: 0;
}

/* 筛选控制 */
.filter-controls {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 24px;
  align-items: start;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-icon {
  font-size: 16px;
}

.tag-filters,
.date-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-filter,
.date-filter {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-filter:hover,
.date-filter:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.tag-filter.active,
.date-filter.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.tag-count {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 6px;
}

/* 视图切换 */
.view-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.view-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f9fafb;
  border-radius: 8px;
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.view-btn:hover {
  color: #374151;
  background: rgba(255,255,255,0.5);
}

.view-btn.active {
  background: white;
  color: #3b82f6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.view-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 图片展示区域 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.image-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

/* 加载状态 */
.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}

/* 结果区域 */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.results-title {
  font-size: 18px;
  font-weight: 700;
  color: #374151;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-count {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 12px;
  border-radius: 12px;
}

.results-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* 功能模块网格 */
.functions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.125rem;
  margin-top: 1.125rem;
}

/* 功能卡片 */
.function-card {
  background: white;
  border-radius: 15px;
  padding: 1.375rem;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.function-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.function-card:hover::before {
  opacity: 1;
}

.function-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.function-card:hover::after {
  opacity: 1;
}

.function-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
}

.function-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  position: relative;
  z-index: 1;
}

.function-card:hover .function-icon {
  transform: scale(1.15) rotate(5deg);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.function-card:hover .function-icon span {
  filter: brightness(0) invert(1);
}

.function-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.function-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.3125rem 0;
  letter-spacing: -0.02em;
}

.function-subtitle {
  color: #3b82f6;
  font-size: 0.78125rem;
  font-weight: 600;
  margin: 0 0 0.6875rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.function-description {
  color: #6b7280;
  font-size: 0.84375rem;
  line-height: 1.5;
  margin: 0 0 0.875rem 0;
}

.function-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.function-card .feature-tag {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #475569;
  font-size: 0.71875rem;
  padding: 7px 11px;
  border-radius: 7px;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  min-height: 30px;
}

.function-card .feature-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.function-card:hover .feature-tag {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.function-card:hover .feature-tag::before {
  left: 100%;
}

.function-card .feature-tag:nth-child(1) {
  animation-delay: 0.05s;
}

.function-card .feature-tag:nth-child(2) {
  animation-delay: 0.1s;
}

.function-card .feature-tag:nth-child(3) {
  animation-delay: 0.15s;
}

.function-card .feature-tag:nth-child(4) {
  animation-delay: 0.2s;
}

.function-arrow {
  position: absolute;
  right: 1.375rem;
  top: 1.375rem;
  font-size: 1.4375rem;
  color: #cbd5e1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.function-card:hover .function-arrow {
  color: #3b82f6;
  transform: translateX(8px) scale(1.2);
}

/* 响应式优化 */
@media (max-width: 768px) {
  .function-card {
    padding: 1.125rem;
  }
  
  .function-icon {
    width: 46px;
    height: 46px;
    font-size: 1.3125rem;
  }
  
  .function-title {
    font-size: 1.0625rem;
  }
  
  .function-features {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .function-card .feature-tag {
    font-size: 0.71875rem;
    padding: 6px 9px;
    min-height: 28px;
  }
  
  .function-arrow {
    right: 1.125rem;
    top: 1.125rem;
    font-size: 1.1875rem;
  }
}

/* 快速操作区 */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.quick-action-btn {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.quick-action-btn:hover {
  background: #f9fafb;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.action-icon {
  font-size: 1.5rem;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 1.125rem;
  padding: 0.875rem 1.25rem;
  background: transparent;
  border-radius: 10px;
}

.breadcrumb-btn {
  background: none;
  border: none;
  color: #60a5fa;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 1.125rem;
  font-weight: 600;
}

.breadcrumb-btn span:first-child {
  font-size: 1.5rem;
}

.breadcrumb-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

.breadcrumb-separator {
  color: #9ca3af;
  font-size: 1.375rem;
  font-weight: 500;
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.125rem;
}

/* 返回按钮 */
.back-btn {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .filter-controls {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .view-controls {
    align-items: center;
  }
  
  .ai-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .feature-tag {
    min-height: 90px;
  }
  
  .feature-icon {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .card {
    padding: 20px;
  }
  
  .card-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .ai-toggle {
    justify-content: center;
  }
  
  .search-mode-toggle {
    width: 100%;
    justify-content: center;
  }
  
  .search-box-container {
    flex-direction: column;
    gap: 12px;
  }
  
  .search-btn {
    width: 100%;
  }
  
  .similarity-preview {
    width: 140px;
    height: 100px;
    margin: 16px auto 0;
  }
  
  .browse-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .toolbar-filters,
  .toolbar-actions {
    width: 100%;
  }
  
  .toolbar-actions {
    justify-content: space-between;
  }
  
  .browse-grid {
    grid-template-columns: 1fr;
  }
  
  .browse-list-item {
    flex-direction: column;
  }
  
  .browse-list-image {
    width: 100%;
    height: 200px;
  }
  
  .browse-list-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .stats-overview {
    grid-template-columns: 1fr;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .search-mode-toggle {
    flex-direction: column;
    gap: 4px;
  }
  
  .mode-btn {
    width: 100%;
    justify-content: center;
  }
  
  .ai-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .feature-tag {
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px 16px;
    min-height: auto;
  }
  
  .feature-icon {
    font-size: 24px;
    margin-bottom: 0;
  }
  
  .feature-tag > span:last-child {
    text-align: left;
  }
  
  .view-toggle {
    width: 100%;
  }
  
  .view-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ===== 上传模块样式 ===== */
.upload-module {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 上传拖放区域 */
.upload-drop-zone {
  margin-top: 24px;
  padding: 60px 32px;
  border: 3px dashed #cbd5e1;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.upload-drop-zone:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.upload-drop-zone.active {
  border-color: #2563eb;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-style: solid;
  transform: scale(1.02);
}

.upload-drop-zone.uploading {
  cursor: not-allowed;
  opacity: 0.7;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.upload-icon {
  font-size: 80px;
  opacity: 0.8;
  animation: floatUpload 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.2));
}

@keyframes floatUpload {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.05);
  }
}

.upload-text {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.upload-hint {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.upload-btn {
  margin-top: 16px;
  padding: 16px 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
  position: relative;
  overflow: hidden;
}

.upload-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.upload-btn:hover::before {
  left: 100%;
}

.upload-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.45);
}

.upload-btn:active {
  transform: translateY(-1px);
}

.upload-btn span:first-child {
  font-size: 22px;
}

.upload-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* 上传结果网格 */
.uploaded-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.uploaded-image-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.uploaded-image-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  border-color: #3b82f6;
}

.image-preview {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.uploaded-image-card:hover .image-preview img {
  transform: scale(1.08);
}

.ai-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.6);
  }
}

.ai-badge::before {
  content: '🤖';
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconRotate 3s ease-in-out infinite;
}

@keyframes iconRotate {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

.image-info {
  padding: 20px;
}

.image-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-description {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 14px 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.image-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.image-tag {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1e40af;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  transition: all 0.2s ease;
}

.image-tag:hover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  transform: translateY(-1px);
}

.image-confidence {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #475569;
  padding-top: 12px;
  border-top: 2px solid #f1f5f9;
}

.confidence-label {
  font-weight: 600;
}

.confidence-value {
  font-weight: 800;
  color: #059669;
  background: #d1fae5;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.remove-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.uploaded-image-card:hover .remove-btn {
  opacity: 1;
}

.remove-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: scale(1.15) rotate(90deg);
}

.btn-clear {
  padding: 10px 20px;
  background: #f1f5f9;
  color: #475569;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* 信息卡片 */
.info-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.info-icon {
  font-size: 36px;
  line-height: 1;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.info-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: #78350f;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.info-list {
  margin: 0;
  padding-left: 28px;
  color: #92400e;
  position: relative;
  z-index: 1;
}

.info-list li {
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding-left: 8px;
}

.info-list li::marker {
  color: #f59e0b;
  font-size: 1.2em;
}

/* ===== 搜索模块样式 ===== */
.search-module {
  animation: fadeIn 0.3s ease;
}

.search-section {
  margin-top: 24px;
}

.sort-select {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sort-select:focus {
  outline: none;
  border-color: #3b82f6;
}

.btn-secondary {
  padding: 12px 24px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

/* 搜索结果卡片 */
.result-image-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.result-image-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  border-color: #3b82f6;
}

.result-image-preview {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f3f4f6;
}

.result-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.result-image-card:hover .result-image-preview img {
  transform: scale(1.05);
}

.result-image-info {
  padding: 16px;
}

.result-image-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-image-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.result-tag {
  background: #f0f9ff;
  color: #0369a1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

/* 列表视图 */
.result-image-list-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.result-image-list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.list-item-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
}

.list-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-item-content {
  flex: 1;
  min-width: 0;
}

.list-item-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.list-item-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 10px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.list-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.list-item-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
}

.meta-date {
  font-size: 13px;
  color: #9ca3af;
  white-space: nowrap;
}

.quick-load-btn {
  margin-top: 24px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.quick-load-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* 模态框样式 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f9fafb, #ffffff);
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: #e5e7eb;
  color: #374151;
  transform: rotate(90deg);
}

.modal-body {
  overflow-y: auto;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.modal-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-image img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-section {
  background: #f9fafb;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.modal-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
}

.modal-section p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tag {
  background: white;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.detection-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
}

.detection-confidence {
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .uploaded-images-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
  }
  
  .result-image-list-item {
    flex-direction: column;
  }
  
  .list-item-image {
    width: 100%;
    height: 200px;
  }
  
  .list-item-meta {
    align-items: flex-start;
  }
}

/* ===== 数据浏览模块样式 ===== */
.browse-module {
  animation: fadeIn 0.3s ease;
}

/* 工具栏 */
.browse-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.toolbar-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.filter-select {
  padding: 8px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: #3b82f6;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toolbar-btn:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

.toolbar-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.toolbar-btn.danger {
  color: #dc2626;
  border-color: #fecaca;
}

.toolbar-btn.danger:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #ef4444;
}

.toolbar-btn.success {
  color: #059669;
  border-color: #a7f3d0;
}

.toolbar-btn.success:hover:not(:disabled) {
  background: #f0fdf4;
  border-color: #10b981;
}

/* 选择提示 */
.selection-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  border: 1px solid #3b82f6;
  border-radius: 8px;
  font-size: 14px;
  color: #1e40af;
  font-weight: 500;
  margin-top: 16px;
}

.selection-icon {
  font-size: 18px;
  color: #3b82f6;
}

.clear-selection-btn {
  margin-left: auto;
  padding: 4px 12px;
  background: white;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3b82f6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-selection-btn:hover {
  background: #3b82f6;
  color: white;
}

/* 浏览标题 */
.browse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.browse-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.browse-count {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 12px;
  border-radius: 12px;
}

/* 网格视图 */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.browse-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.browse-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #3b82f6;
}

.browse-card.selected {
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.browse-card-checkbox {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
}

.browse-card-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #3b82f6;
}

.browse-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f3f4f6;
  position: relative;
}

.browse-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.browse-card:hover .browse-card-image img {
  transform: scale(1.05);
}

.defect-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(239, 68, 68, 0.95);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.browse-card-content {
  padding: 16px;
}

.browse-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browse-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.browse-tag {
  background: #eff6ff;
  color: #1e40af;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.browse-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.browse-date {
  font-size: 13px;
  color: #9ca3af;
}

.browse-delete-btn {
  padding: 4px 8px;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.browse-delete-btn:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* 列表视图 */
.browse-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.browse-list-item {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.browse-list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.browse-list-item.selected {
  border-color: #3b82f6;
  background: #f0f9ff;
}

.browse-list-checkbox {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.browse-list-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #3b82f6;
}

.browse-list-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
}

.browse-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.browse-list-content {
  flex: 1;
  min-width: 0;
}

.browse-list-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.browse-list-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 10px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.browse-list-tags {
  display: flex;
  flex-wrap: wrap;
}

.browse-list-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  justify-content: space-between;
}

.browse-list-defects {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.defects-icon {
  font-size: 16px;
}

.browse-list-date {
  font-size: 13px;
  color: #9ca3af;
  white-space: nowrap;
}

.browse-list-delete-btn {
  padding: 6px 12px;
  background: #f3f4f6;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.browse-list-delete-btn:hover {
  background: #fef2f2;
  border-color: #ef4444;
}

/* 浏览模态框优化 */
.browse-modal .modal-body {
  max-height: calc(90vh - 100px);
}